﻿<html>
<head>
<title>导入处理</title>
<script language="javascript">

    //开始处理
    function BeginTrans(msg)
    {
        WriteText("Msg1",msg);
    }

    //设置进度条进度
    function SetPorgressBar(msg, pos)
    {
        ProgressBar.style.width= pos + "%";
        WriteText("Msg1",msg + " 已完成" + pos + "%");
    }

    //处理结束
    function EndTrans(msg)
    {
        if(msg==""){
            WriteText("Msg1","完成。");
            }
        else
            WriteText("Msg1",msg);
    }

    //设置时间信息
    function SetTimeInfo(msg)
    {
        WriteText("Msg2",msg);
    }

    // 更新文本显示信息
    function WriteText(id, str)
    {
	    var strTag = '<font face="Verdana, Arial, Helvetica" size="2" color="#ea9b02"><B>' + str + '</B></font>';	
	    if (document.all) document.all[id].innerHTML = strTag;
    }

    //显示异常信息
    function SetExceptionMsg(msg)
    {
        WriteText("div_ExceptionMsg",msg);
    }
    //隐藏进度条信息
    function SetShowDisabled()
    {
        document.all("t_ProgressBar").style.display = "none";
    }
</script>
</head>
<body>
<table align="center" style="height:100px" id="t_ProgressBar">
    <tr style="height:30%"><td></td></tr>
    <tr style="height:30%">
        <td>
            <div id="Msg1" style="height:16px;"><font face="Verdana, Arial, Helvetica" size="2" color="#ea9b02"><b>正在导入...</b></font></div>
            <div id="ProgressBarSide" style="width:300px; color:Silver;border-width:1px; border-style:Solid;">
                <div id="ProgressBar" align="center" style="height:20px; width:0%; background-color:#316AC5;"></div>
            </div>
            <div id="Msg2" style="height:16px;"><font face="Verdana, Arial, Helvetica" size="2" color="#ea9b02"><b></b></font></div>
        </td>
    </tr>
</table>

</body>
</html>